package com.atguigu.jxc.dao;

import com.atguigu.jxc.entity.DamageList;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.Date;
import java.util.List;

@Mapper
@Component
public interface DamageListDao {
    /**
     * 保存报损单
     * @param damageList
     */
    void save(DamageList damageList);

    /**
     * 查询报损单
     * @param start
     * @param end
     * @return
     */
    List<DamageList> list(Date start, Date end);

    /**
     * 获取报损单单号
     * @param damageNumber
     * @return
     */
    Integer getByNum(String damageNumber);
}
